<template>
  <div>
    <el-tabs type="border-card" @tab-click="handleClick">
      <el-tab-pane label="帐号管理">
        <router-view></router-view>
      </el-tab-pane>
      <!--<router-link :to="{ path: '/AccountsList'}" tag="el-tab-pane" label="用户中心">用户中心</router-link>-->
      <el-tab-pane label="收藏夹管理">
        <router-view></router-view>
      </el-tab-pane>
      <el-tab-pane label="系统设置">系统设置</el-tab-pane>
      <el-tab-pane label="定时任务">定时任务</el-tab-pane>
    </el-tabs>
  </div>
</template>
<script>
  export default {
    data() {
      return {
        isCollapse: true,
      }
    },
    methods: {
      handleClick(tab, event) {
        console.log(tab.index);
        if (tab.index == 0) {
          this.$router.push({path: "/UserCenter/AccountsList"});
        } else {
          this.$router.push({path: "/UserCenter/FavoriteList"});
        }

      }
    }
  }
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>
  .el-menu-vertical-demo:not(.el-menu--collapse) {
    width: 100px;
    min-height: 400px;
  }

  .el-row {
    margin-bottom: 20px;

  &
  :last-child {
    margin-bottom: 0;
  }

  }
  .el-col {
    border-radius: 4px;
  }

  .bg-purple-dark {
    background: #99a9bf;
  }

  .bg-purple {
    background: #d3dce6;
  }

  .bg-purple-light {
    background: #e5e9f2;
  }

  .grid-content {
    /*width: 500px;*/
    border-radius: 4px;
    min-height: 36px;
  }

  .el-col_12 {
    width: 100%
  }

  .row-bg {
    padding: 10px 0;
    background-color: #f9fafc;
  }
</style>
